                            <? $frmtime = time(); ?>
                            <div class="main">
                                <h3 class="title"><?=$clabel?> &raquo; <?=$mlabel?></h3>
                                <div class="formdiv">
                                    <form method="POST" id="frmUpdateArea<?=$frmtime?>">
                                        <table>
                                            <? if( isset($errors) ) {
                                               foreach($errors as $error) {
                                               ?>
                                            <tr>
                                                <td class="errormsg" colspan="3">
                                                    <?=$error?>    
                                                </td>
                                            </tr>   
                                               <? 
                                               } 
                                            }  ?>
                                            <? if( isset($successes) ) {
                                               foreach($successes as $success) {
                                               ?>
                                            <tr>
                                                <td class="successmsg" colspan="3">
                                                    <?=$success?>    
                                                </td>
                                            </tr>   
                                               <? 
                                               } 
                                            }  ?>
                                            <tr>
                                                <td><label for="area_name">Area Name*</label></td>
                                                <td>
                                                    <input type="hidden" name="area_id" value="<?=$area_id?>"/>
                                                    <input type="text" class="text required" maxlength="50" minlength="3"  name="area_name" value="<?=$area_name?>" />
                                                </td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <td><label for="area_code">Area Code</label></td>
                                                <td>
                                                    <input type="text" class="text" maxlength="50" minlength="3"  name="area_code" value="<?=$area_code?>" />
                                                </td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <td><label>Transport Fee</label></td>
                                                <td colspan="2">
                                                    <?=$area_transport_fee?>
                                                </td>
                                            </tr>
                                        	<tr>
                                        		<td></td>
                                        		<td colspan="2">
                                                    <input class="button" type="submit" name="btnUpdateArea" value="Update" id="btnUpdateArea<?=$frmtime?>" />
                                                    <input class="button" type="reset" value="Cancel" id="btnreset<?=$frmtime?>" />
                                                </td>
                                        	</tr>
                                        </table>
                                	</form>
                                    <script language="javascript" type="text/javascript">
                                        if(typeof jQuery == 'undefined') {
                                            alert('Invalid Request');
                                            window.location = "/";
                                        }
                                        $(document).ready( function() {
                                            var frmObj = $("#frmUpdateArea<?=$frmtime?>");
                                            $("#frmUpdateArea<?=$frmtime?>").validate({
                                                errorPlacement: function(error, element) {
                                                    placeError(error, element);
                                                },
                                                submitHandler: function(form) {
                                                    var cui = $('#contenttabs .ui-tabs-panel:visible');                                                                                                        
                                               	    var jqxhr = $.post(
                                                        "/transport/editarea", 
                                                        $("#frmUpdateArea<?=$frmtime?>").serialize(), 
                                                        function (data) {
                                                            $(cui).html(data);
                                                        }
                                                    );
                                                    $(cui).html('<div id="loadingdiv"><div class="centerdiv"><strong>Processing</strong><br/><img src="/images/ajaxloader.gif" /></div></div>');
                                                }
                                            });
                                            
                                            $("input[type='reset']",frmObj).click( function() {
                                                $('label.error',frmObj).remove();
                                            });
                                            
                                            
                                        });
                                    </script>
                                 </div>
                            </div>